package no.sachmuld.methodcombination.examples.adapter.clossimplestyle.foo;

import java.util.Arrays;
import java.util.List;

/**
 *
 */
public class FooX extends Foo {

    public FooX() {
        with(new FooBehaviour() {

            @Override
            public String list() {
                return "FooX";
            }

            @Override
            public List<String> append() {
                return Arrays.asList("FooX");
            }

            @Override
            public boolean or() {
                return true;
            }

            @Override
            public boolean and() {
                return true;
            }

            @Override
            public void all() {
                System.out.println("FooX");
            }

            @Override
            public int sum() {
                return 1;
            }

            @Override
            public int min() {
                return 1;
            }

            @Override
            public int max() {
                return 1;
            }
        });
    }
}
